import 'package:flutter/cupertino.dart';
import 'package:untitled/core/utils/toast.dart';

import '../../../core/network/request.dart';

class FriendInfoViewModel extends ChangeNotifier{
  final _request = RequestService();
  Future<void> addFriend(String imId) async {
    final data = await _request.post('/friend/request', data: { "im_id": imId, "reason": "添加朋友" });
    toast(data.message);
  }

}